<?php get_header(); ?>
<script>
 $(document).ready(function() {
	$("#lgnbtn").hover(function() {
		$("#lgnbtn").attr('src','<?php echo base_url(); ?>media/images/login_button_over.png');
	},function() {
		$("#lgnbtn").attr('src','<?php echo base_url(); ?>media/images/login_button.png');
	});
	
	$("#regnowbtn").hover(function() {
		$("#regnowbtn").attr('src','<?php echo base_url(); ?>media/images/register_now_over.png');
	},function() {
		$("#regnowbtn").attr('src','<?php echo base_url(); ?>media/images/register_now.png');
	}); 
	
	$("#forgotpassbtn").hover(function() {
		$("#forgotpassbtn").attr('src','<?php echo base_url(); ?>media/images/forgotpass_over.png');
	},function() {
		$("#forgotpassbtn").attr('src','<?php echo base_url(); ?>media/images/forgotpass.png');
	}); 
 });
</script>
<h3>Giriş Yap</h3>
<div id="login">
	<?php echo validation_errors(); ?>
	<?php echo $giris_error; ?>
	<?php echo form_open(giris_url()); ?>
	<div class="item">
		<div class="left">Kullanıcı Adı: </div>
		<div class="right"><input type="text"id="kadi" name="kadi" class="field" value="<?php echo set_value('kadi'); ?>" /></div>
		<div class="clearer"></div>
	</div>
	<div class="item">
		<div class="left">Parola: </div>
		<div class="right"><input type="password" id="parola" name="parola" class="field" value=""></div>
		<div class="clearer"></div>
	</div>
	<div class="item" style="text-align: right">
		<a href="#"><img src="<?php echo base_url(); ?>media/images/forgotpass.png" id="forgotpassbtn"></a>
		<input type="image" id="lgnbtn" src="<?php echo base_url(); ?>media/images/login_button.png" />
	</div>
	<input type="hidden" id="referer" name="referer" value="<?php echo $this->referer = &$this->input->server("HTTP_REFERER"); ?>" />
	</form>
</div>
<div id="right_info">
	<div class="box">
		<div class="text">
			<p>Daha üye olmadın mı? Hemen üye olmak için aşağıdaki butona tıkla.</p><br>
			<a href="<?php echo kayit_url(); ?>"><img src="<?php echo base_url(); ?>media/images/register_now.png" id="regnowbtn"></a>
		</div>
		<div class="links">
			<a href="#">&raquo; Gizlilik Sözleşmesi</a><br>
			<a href="#">&raquo; Parolamı Unuttum!</a>
		</div>
		
	</div>
</div>
<div class="clearer"></div>
</div>
<?php get_footer(); ?>